file(GLOB CURRENT_SOURCE_PATH ${PROJECT_SOURCE_DIR}/monolith/core/*.cc)
file(GLOB CURRENT_HEAD_PATH ${PROJECT_SOURCE_DIR}/monolith/core/*.h)

set(LIB_NAME ml_core)
add_library(${LIB_NAME} OBJECT ${CURRENT_SOURCE_PATH})
target_include_directories(${LIB_NAME} PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/)
list(APPEND MONOLITH_BACKENDS_OBJECTS $<TARGET_OBJECTS:${LIB_NAME}>)
list(APPEND MONOLITH_BACKENDS_TARGETS ${LIB_NAME})
list(APPEND MONOLITH_BACKENDS_HEADS ${PROJECT_SOURCE_DIR}/monolith/core/tensor.h
    ${PROJECT_SOURCE_DIR}/monolith/core/macros.h)